#pragma once
#include "UIControl.h"
#include "UIProductList.h"
// CProductListWnd

class CProductListWnd : public CWnd, public CUIControl
{
	enum
	{
		Timer_Get_ProductList = 1,
	};
	DECLARE_DYNAMIC(CProductListWnd)

public:
	CProductListWnd();
	virtual ~CProductListWnd();

	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnTimer(UINT nIDEvent);
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
public:
	void Render(CDC *pDC);
	void GetProductList();
	void Switch(DWORD dwGameId);
protected:
	DECLARE_MESSAGE_MAP()
public:
	CUIProductList  m_uiProductList;
};

extern CProductListWnd g_wndProductList;

